const Sequelize = require("sequelize");
const sequelize = new Sequelize(
    'mingcai_db',
    'root',
    'TiRWIsZCwdRXeBxZ',
    {
        host: '95.169.25.181',
        dialect: 'mysql'
    }
);


sequelize.authenticate()
    .then(() => {
    console.log('Connection has been established successfully.');
}).catch((error) => {
    console.error('Unable to connect to the database: ', error);
});

exports.db = sequelize